package com.yl.module.property.domain;

												
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 资产更换记录表 实体
 * @author liangjian
 * @date 2024-10-27 21:10:48
 */
@Data
@Accessors(chain = true)
@TableName("property_change")
@ApiModel(value = "PropertyChange", description = "资产更换记录表")
public class PropertyChange extends Model<PropertyChange> implements Serializable {
	private static final long serialVersionUID = 413401779431360163L;

    @ApiModelProperty(value = "资产更换记录表-主键id")
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

	@ApiModelProperty(value = "资产一级分类id 来源property_type.id")
	@TableField("`property_type_id`")
    private Integer propertyTypeId;

	@ApiModelProperty(value = "资产id 来源property.id 属于更换前的资产id")
	@TableField("`property_id`")
    private Integer propertyId;

	@ApiModelProperty(value = "资产id 来源property.id 属于更换后的资产id")
	@TableField("`property_id_later`")
    private Integer propertyIdLater;

	@ApiModelProperty(value = "描述")
	@TableField("`describe`")
    private String describe;

	@ApiModelProperty(value = "操作人id")
	@TableField("`user_id`")
    private Long userId;

	@ApiModelProperty(value = "更换时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`change_time`")
    private LocalDateTime changeTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`create_time`")
    private LocalDateTime createTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("`update_time`")
    private LocalDateTime updateTime;

	@TableField("`delete_flag`")
    private Integer deleteFlag;

}

